package com.example.ruteroelmeromero;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

import android.content.Context;
import android.graphics.drawable.Drawable;

public class CustomItemizedFactory {
	Drawable drawable;
	Context context;

	public CustomItemizedFactory(Drawable drawable,Context context) {
		this.drawable = drawable;
		this.context = context;
	}

	public CustomItemizedOverlay getItem(int lat, int lng,
			String titulo, String descripcion) {
		CustomItemizedOverlay ret = new CustomItemizedOverlay(drawable, context);
		GeoPoint point = new GeoPoint(lat, lng);
		OverlayItem overlayitem = new OverlayItem(point, "Tienda: " + titulo,
				"Total: " + descripcion);
		ret.addOverlay(overlayitem);
		return ret;
	}
}
